package com.happy.feign.controller;

import com.happy.feign.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: lifeng
 * @Date: 2018/12/6 14:45
 * @Description:
 */
@RestController
public class FeignController {

  @Autowired
  FeignService feignService;

  @GetMapping("hello")
  public String getPort(){
    return feignService.hello();
  }

}
